﻿using AdminSystem.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Domain
{
    /// <summary>
    /// 企业表
    /// </summary>
    public class Enterprise : BaseClass
    {
        /// <summary>
        /// 养殖编号
        /// </summary>
        [Key]
        public int CultivationInfoId { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        [StringLength(50)]
        public string Variety { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        [StringLength(50)]
        public string Source { get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        [StringLength(50)]
        public string TraceabilityId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(50)]
        public string FirmName { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public int ProvinceId { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public int CityId { get; set; }
        /// <summary>
        /// 县
        /// </summary>
        public int countyId { get; set; }
        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime EstablishData { get; set; }
        /// <summary>
        /// 公司简介
        /// </summary>
        [StringLength(50)]
        public string FirmDesc { get; set; }
        /// <summary>
        /// 班组
        /// </summary>
        [StringLength(50)]
        public string Team { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string Head { get; set; }
        /// <summary>
        /// 企业照片
        /// </summary>
        [StringLength(500)]
        public string EnterprisePic { get; set; }
    }
}
